﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    public partial class BLLSession 
    {
	   public int SaveChanges(string type)
        {
            IDBSessionFactory sessFactory = DI.Spring.GetObject<IDBSessionFactory>("DBSessFactory");
            var iDbSession = sessFactory.GetDBSession();
            return iDbSession.SaveChanges(type);
        }       


        		
		IObject_BLL iObject_BLL;
		public IObject_BLL IObject_BLL
		{
			get
			{
				if(iObject_BLL==null)
					iObject_BLL= new Object_BLL();
				return iObject_BLL;
			}
			set
			{
				iObject_BLL= value;
			}
		}
	
    }
	public partial class BLLSession : IBLLSession
    {
        		#region 01 业务接口 IAccountInfo_DAL
		IAccountInfo_BLL iAccountInfo_BLL;
		public IAccountInfo_BLL IAccountInfo_BLL
		{
			get
			{
				if(iAccountInfo_BLL==null)
					iAccountInfo_BLL= new AccountInfo_BLL();
				return iAccountInfo_BLL;
			}
			set
			{
				iAccountInfo_BLL= value;
			}
		}
		#endregion

        		#region 02 业务接口 IMarketplace_DAL
		IMarketplace_BLL iMarketplace_BLL;
		public IMarketplace_BLL IMarketplace_BLL
		{
			get
			{
				if(iMarketplace_BLL==null)
					iMarketplace_BLL= new Marketplace_BLL();
				return iMarketplace_BLL;
			}
			set
			{
				iMarketplace_BLL= value;
			}
		}
		#endregion

        		#region 03 业务接口 IMarketplaceServiceURL_DAL
		IMarketplaceServiceURL_BLL iMarketplaceServiceURL_BLL;
		public IMarketplaceServiceURL_BLL IMarketplaceServiceURL_BLL
		{
			get
			{
				if(iMarketplaceServiceURL_BLL==null)
					iMarketplaceServiceURL_BLL= new MarketplaceServiceURL_BLL();
				return iMarketplaceServiceURL_BLL;
			}
			set
			{
				iMarketplaceServiceURL_BLL= value;
			}
		}
		#endregion

        		#region 04 业务接口 IMerchant_DAL
		IMerchant_BLL iMerchant_BLL;
		public IMerchant_BLL IMerchant_BLL
		{
			get
			{
				if(iMerchant_BLL==null)
					iMerchant_BLL= new Merchant_BLL();
				return iMerchant_BLL;
			}
			set
			{
				iMerchant_BLL= value;
			}
		}
		#endregion

        		#region 05 业务接口 IReportRequestInfo_DAL
		IReportRequestInfo_BLL iReportRequestInfo_BLL;
		public IReportRequestInfo_BLL IReportRequestInfo_BLL
		{
			get
			{
				if(iReportRequestInfo_BLL==null)
					iReportRequestInfo_BLL= new ReportRequestInfo_BLL();
				return iReportRequestInfo_BLL;
			}
			set
			{
				iReportRequestInfo_BLL= value;
			}
		}
		#endregion

            }
}